package com.lipy.tools.entitymapping;

/**
 * @Description TODO
 * @Date 2020/11/26 9:17
 * @Author by lipye
 */
public class PersonVo {
    private final String name;
    protected PersonVo(PersonVo.Builder builder){
        this.name = builder.name;
    }
    public static PersonVo.Builder builder(){
        return new PersonVo.Builder();
    }
    public static class Builder{
        private String name;
        public Builder name(String name){
            this.name = name;
            return this;
        }
        public PersonVo create(){
            return new PersonVo(this);
        }
    }

    @Override
    public String toString() {
        return "PersonVo{" +
                "name='" + name + '\'' +
                '}';
    }
}
